; HuTao

; Constants -------------------------

[Constants]
global persist $Skin = 0
global persist $Transparent = 0
global persist $Dress = 0
global persist $Sunglass = 0
global persist $GarterBelt = 0
global persist $AnkleBand = 0
global persist $Sandals = 0
global persist $Sunglass = 0
global $active

[KeySunglass]
condition = $active == 1
key = VK_NUMPAD8
type = cycle
$Sunglass = 0,1,2

[KeyTransparent]
condition = $active == 1
key = VK_NUMPAD9
type = cycle
$Transparent = 0,1

[KeyDress]
condition = $active == 1
key = VK_NUMPAD5
type = cycle
$Dress = 0,1,2,3,4

[KeySkin]
condition = $active == 1
key = VK_NUMPAD6
type = cycle
$Skin = 0,1

[KeySandals]
condition = $active == 1
key = VK_NUMPAD2
type = cycle
$Sandals = 0,1

[KeyBelt]
condition = $active == 1
key = VK_NUMPAD3
type = cycle
$GarterBelt = 0,1,0,1
$AnkleBand = 0,0,1,1

[Present]
post $active = 0


; Overrides -------------------------

[TextureOverrideHuTaoPosition]
hash = dd16576c
vb0 = ResourceHuTaoPosition
$active = 1

[TextureOverrideHuTaoBlend]
hash = 153dba3f
vb1 = ResourceHuTaoBlend
handling = skip
draw = 53127,0 

[TextureOverrideHuTaoTexcoord]
hash = 51afdfcf
vb1 = ResourceHuTaoTexcoord

[TextureOverrideHuTaoVertexLimitRaise]
hash = e9d17db6
; override_vertex_count = 53127
; override_byte_stride = 84

[TextureOverrideHuTaoIB]
hash = 3de1efe2
handling = skip

[TextureOverrideHuTaoHead]
hash = 3de1efe2
match_first_index = 0
ib = ResourceHuTaoHeadIB
ps-t0 = ResourceHuTaoHeadDiffuse
ps-t1 = ResourceHuTaoHeadLightMap
; HuTaoHead (6926)
drawindexed = 26859, 0, 0
if $Sunglass == 1
	; Sunglass2 (635)
	drawindexed = 1788, 26859, 0
endif

[TextureOverrideHuTaoBody]
hash = 3de1efe2
match_first_index = 16509
ib = ResourceHuTaoBodyIB
if $Skin == 0
ps-t0 = ResourceHuTaoBodyDiffuse1
else if $Skin == 1
ps-t0 = ResourceHuTaoBodyDiffuse2
endif
ps-t1 = ResourceHuTaoBodyLightMap
if $Dress == 0 && $Transparent == 0
ps-t69 = ResourceBodyTmap
run = CommandList\Texfx\T.0
endif
; HuTaoBody (32718)
drawindexed = 182850, 0, 0
if $Dress == 0
	; BodySuit (4408)
	drawindexed = 23184, 182850, 0
endif
if $Dress == 1 || $Dress == 3
	; BikiniUnder (2429)
	drawindexed = 7458, 206034, 0
endif
if $Dress == 1 || $Dress == 2
	; BikiniUpper (2556)
	drawindexed = 7620, 213492, 0
endif
if $Sunglass == 0
	; Sunglass1 (2469)
	drawindexed = 20928, 221112, 0
endif
if $GarterBelt == 0
	; GarterBelt (242)
	drawindexed = 600, 242040, 0
endif
if $AnkleBand == 0
	; AnkleBand (204)
	drawindexed = 576, 242640, 0
endif
if $Sandals == 0
	; Sandals (540)
	drawindexed = 3288, 243216, 0
endif

[TextureOverrideHuTaoFaceHeadDiffuse]
hash = d00bb0ef
if $Skin == 0
this = ResourceHuTaoFaceHeadDiffuse1
else if $Skin == 1
this = ResourceHuTaoFaceHeadDiffuse2
endif

[TextureOverrideHuTaoFaceHeadLightMap]
hash = 4e3376db
this = ResourceHuTaoFaceHeadLightMap

[TextureOverrideHuTaoFaceHeadShadow]
hash = 3f396398
this = ResourceHuTaoFaceHeadShadow


; CommandList -----------------------

; Resources -------------------------

[ResourceHuTaoPosition]
type = Buffer
stride = 40
filename = HuTaoPosition.buf

[ResourceHuTaoBlend]
type = Buffer
stride = 32
filename = HuTaoBlend.buf

[ResourceHuTaoTexcoord]
type = Buffer
stride = 12
filename = HuTaoTexcoord.buf

[ResourceHuTaoHeadIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = HuTaoHead.ib

[ResourceHuTaoBodyIB]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = HuTaoBody.ib

[ResourceHuTaoHeadDiffuse]
filename = HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap]
filename = HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse1]
filename = White\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyDiffuse2]
filename = Dark\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap]
filename = HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse1]
filename = White\HuTaoFaceHeadDiffuse.dds

[ResourceHuTaoFaceHeadDiffuse2]
filename = Dark\HuTaoFaceHeadDiffuse.dds

[ResourceHuTaoFaceHeadLightMap]
filename = HuTaoFaceHeadLightMap.dds

[ResourceHuTaoFaceHeadShadow]
filename = HuTaoFaceHeadShadow.dds

[ResourceBodyTmap]
filename = BodyTmap.dds


; .ini generated by XXMI (XX-Model-Importer)
; If you have any issues or find any bugs, please open a ticket at https://github.com/leotorrez/XXMI-Tools/issues